package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Category;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * TODO
 *
 * @Author mr.wu
 * @Data #{DATE} #{TIME}
 */
@Mapper
public interface CategoryMapper {

    @AutoFill(OperationType.INSERT)
    int save(Category category);

    List<Category> getPage(Category category);

    int deleteById(Long id);

    @AutoFill(OperationType.UPDATE)
    int update(Category category);

    List<Category> getList(Integer type);

    Category getCategory(Integer id);

    List<Category> getCategoryList();
}
